/**
 * Created by yangsen on 2017/9/7.
 */
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

@Component({
  selector: 'map-navigation',
  templateUrl: 'navigation.html'
})
export class MapNavigationPage {
  map: any;

  constructor(public navCtrl: NavController) {
      this.initMap();
  }

  initMap() {
    setTimeout(function () {
      //初始化地图
      this.map = new AMap.Map('container', {
        resizeEnable: true,
        zoom: 11,
        center: [116.397428, 39.90923]
      });
    }, 1);
  }

}
